package com.zhcd.sys.controller;


import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.zhcd.sys.service.CatalogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author feifei
 * @since 2021-11-29
 */
@RestController
@RequestMapping("/sys/catalog")
public class CatalogController {
    @Autowired
    public CatalogService catalogService;

    //查询全部菜单
    /*@RequestMapping(value = "/getAll_UpNavCatalog",method = RequestMethod.GET)
    @ResponseBody
    public String getAll_UpNavCatalog(int UpNav) throws JsonProcessingException {
        HashMap<String,Object> hs=new HashMap<>();
        hs.put("code","200");
        hs.put("data",catalogService.getAll_UpNavCatalog(UpNav));
        hs.put("url","");
        ObjectMapper objectMapper=new ObjectMapper();
        return objectMapper.writeValueAsString(hs);
    }*/
}

